import { Component, ViewChild } from '@angular/core';
import { IonicPage, NavController, NavParams,ModalController  } from 'ionic-angular';
import { Content } from 'ionic-angular';
import { AddPage } from'./add/add'
import { SearchPage } from'./search/search'
import { ProjectListPage } from'./project-list/project-list'


@IonicPage()
@Component({
  selector: 'page-project',
  templateUrl: 'project.html',
})
export class ProjectPage {
  @ViewChild(Content) content: Content;
  items: any;
  constructor(public navCtrl: NavController, public navParams: NavParams,public modalCtrl: ModalController) {
    // this.items=[{"title":"关于年底冲刺","note":"创建于2016-11-25"},
    // {"title":"质量项目小组","note":"创建于2016-08-07"}]
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad Project');
  }
presentAddModal() {
    let modal = this.modalCtrl.create(AddPage);
    modal.present();
  }
  presentSearchModal(){
     let modal = this.modalCtrl.create(SearchPage);
    modal.present();
  }
presentDetailModal() {
    let modal = this.modalCtrl.create(ProjectListPage);
    modal.present();
  }
}
